{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.css' %}">
    <style>
        .navbar{
            border-radius: 0;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">用户信息表</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">用户信息</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

      <ul class="nav navbar-nav navbar-right">
        <li><a href="/layout/login/">登录</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">跳转<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="/layout/login_sms/">注册</a></li>
            <li><a href="/Us/list">刷新</a></li>
            <li><a href="/Con/list">查看剩余时长</a></li>

          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>

<div>
    <div class="container">
        <div style="margin-bottom: 10px">
            <a class="btn btn-primary" href="/register/" target="_blank">添加用户</a>
        </div>

   <div class="bs-example" data-example-id="panel-without-body-with-table">
    <div class="panel panel-default">
      <!-- Default panel contents -->
      <div class="panel-heading">用户使用信息</div>

      <!-- Table -->
      <table class="table table-bordered">
        <thead>
          <tr>

            <th>用户名</th>
            <th>密码</th>
            <th>邮箱</th>
              <th>手机号</th>
              <th>

              </th>
          </tr>
        </thead>
        <tbody>
         {% for obj in queryset %}
             <th>{{ obj.username }}<a class="btn btn-primary btn-xs"href="/Us/{{ obj.mobile_phone }}/edit/">编辑</a></th>
             <th>{{ obj.password }}<a class="btn btn-primary btn-xs"href="/Us/{{ obj.mobile_phone }}/edit2/">编辑</a></th>
             <th>{{ obj.email }}<a class="btn btn-primary btn-xs"href="/Us/{{ obj.mobile_phone }}/edit1/">编辑</a></th>
             <th>{{ obj.mobile_phone }}</th>
             <th>

                  <a class="btn btn-danger btn-xs" herf="/Us/list/?nid={{ obj.de_mobile_phone }}">删除</a>
              </th>

        {% endfor %}
        </tbody>
      </table>
    </div>
  </div>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">手机号不可更改</h3>
  </div>
  <div class="panel-body">

  </div>
</div>
    </div>
</div>

<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap-3.4.1/js/bootstrap.js' %}">
</script>
{% block js %}{% endblock %}
</body>
</html>